/**
 * 
 */
package com.maxin.entity;

/**
 * @author: maxin
 * @description: 商品信息表
 */
public class Goodstable {
	// 商品编号
	private long id;
	private String gname;
	// 原价
	private double goprice;
	// 现价
	private double grprice;
	// 库存
	private int gstore;
	// 图片
	private String gpicture;
	// 类型id(FK)
	private long goodstype_id;
	
	private Goodstype goodstype;
	
	
	
	public long getId() {
		return id;
	}



	public void setId(long id) {
		this.id = id;
	}



	public String getGname() {
		return gname;
	}



	public void setGname(String gname) {
		this.gname = gname;
	}



	public double getGoprice() {
		return goprice;
	}



	public void setGoprice(double goprice) {
		this.goprice = goprice;
	}



	public double getGrprice() {
		return grprice;
	}



	public void setGrprice(double grprice) {
		this.grprice = grprice;
	}



	public int getGstore() {
		return gstore;
	}



	public void setGstore(int gstore) {
		this.gstore = gstore;
	}



	public String getGpicture() {
		return gpicture;
	}



	public void setGpicture(String gpicture) {
		this.gpicture = gpicture;
	}



	public long getGoodstype_id() {
		return goodstype_id;
	}



	public void setGoodstype_id(long goodstype_id) {
		this.goodstype_id = goodstype_id;
	}



	public Goodstype getGoodstype() {
		return goodstype;
	}



	public void setGoodstype(Goodstype goodstype) {
		this.goodstype = goodstype;
	}



	@Override
	public String toString() {	
		  return "Goodstable [id=" + id + ", gname=" + gname + ", goprice=" + goprice +
		  ", grprice=" + grprice + ", gstore=" + gstore + ", gpicture=" + gpicture +
		  ", goodstype_id="  + ", goodstype=" + goodstype + "]";
	}

	
}
